﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <title>Untitled Page</title>
  <style type="text/css">
    body { margin: 0px; width: 200px; height: 150px; font-size: 11px; }
    #events { width: 100%; height: 100%; padding: 7px; background-color: #444; color: #fff; }
  </style>
</head>
<body onclick="System.Gadget.Flyout.show=false">
  <div id="events">
    Events for day <span id="event"></span>
  </div>
  <script src="jquery.js" type="text/javascript"></script>
  <script type="text/javascript">
    $(function () {
      var pw = System.Gadget.document.parentWindow;
      $("#event").text(pw.APP.events);
    });
  </script>
</body>
</html>
